import request from "@/utils/request";

// 查询物流信息
export function mallOrderLogistics(query) {
  return request({
    url: "/logistics/logisticsInfo",
    method: "get",
    params: query,
  });
}

// 订单发货
export function mallOrderSend(query) {
  return request({
    url: "/mall/mallOrder/send",
    method: "get",
    params: query,
  });
}

// 查询商品订单列表
export function listMallOrder(query) {
  return request({
    url: "/mall/mallOrder/list",
    method: "get",
    params: query,
  });
}

// 查询商品订单详细
export function getMallOrder(id) {
  return request({
    url: "/mall/mallOrder/" + id,
    method: "get",
  });
}

// 新增商品订单
export function addMallOrder(data) {
  return request({
    url: "/mall/mallOrder",
    method: "post",
    data: data,
  });
}

// 修改商品订单
export function updateMallOrder(data) {
  return request({
    url: "/mall/mallOrder",
    method: "put",
    data: data,
  });
}

// 删除商品订单
export function delMallOrder(id) {
  return request({
    url: "/mall/mallOrder/" + id,
    method: "delete",
  });
}

// 银行卡支付订单确认
export function orderCollConfirm(query) {
  return request({
    url: "/mall/mallOrder/order/confirm",
    method: "get",
    params: query,
  });
}
